<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMemberShipsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('member_ships', function (Blueprint $table) {
            $table->id()->comment('会员类型表');
            $table->string('type',32)->comment('会员类别month:月卡会员；quarter:季卡；year:年卡；ever:永久；free:免费；tryout:试用');
            $table->string('title',32)->comment('会员名称');
            $table->string('vip_day')->comment('会员天数');
            $table->decimal('price')->comment('原价');
            $table->decimal('new_price')->comment('现价');
            $table->integer('sort')->comment('排序倒序');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('member_ships');
    }
}
